# Maintainer: Daurnimator <daurnimator@archlinux.org>
pkgname=sfsexp
pkgver=1.4.1
pkgrel=1
pkgdesc="Small Fast S-Expression Library"
arch=(loong64 x86_64)
url="https://github.com/mjsottile/sfsexp"
license=('LGPL')
depends=('glibc')
source=("https://github.com/mjsottile/sfsexp/releases/download/v$pkgver/sfsexp-$pkgver.tar.gz")
sha256sums=('15e9a18bb0d5c3c5093444a9003471c2d25ab611b4219ef1064f598668723681')

build() {
	cd "sfsexp-$pkgver"
	./configure --prefix=/usr
	make
}

check() {
	cd "sfsexp-$pkgver"
	make -k check
}

package() {
	cd "sfsexp-$pkgver"
	make DESTDIR="$pkgdir/" install
}
